/**
 * Created by Administrator on 2017/4/1.
 */
'use strict';
swan_pc.config(
    function($stateProvider){
        $stateProvider
            .state('personalOppInfo', {
                parent:'site',
                url:'/personalOppInfo',
                views:{
                    'content@':{
                        templateUrl:'scripts/components/personalBusiness/opp/oppInfo/oppPage.html',
                        // controller:'PersonalOppListController'
                    }
                }
            })
    })
    .config(
        function($stateProvider){
            $stateProvider
                .state('personalOppBase', {
                    parent:'personalOppInfo',
                    url:'/base',
                    views:{
                        'component@personalOppInfo':{
                            templateUrl:'scripts/components/personalBusiness/opp/oppInfo/oppBase.html',
                            controller:'PersonalOppBaseController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('personalOppDecision', {
                    parent:'personalOppInfo',
                    url:'/decision',
                    views:{
                        'component@personalOppInfo':{
                            templateUrl:'scripts/components/personalBusiness/opp/oppInfo/oppDecision.html',
                            controller:'PersonalOppDecisionController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('personalOppEnemy', {
                    parent:'personalOppInfo',
                    url:'/enemy',
                    views:{
                        'component@personalOppInfo':{
                            templateUrl:'scripts/components/personalBusiness/opp/oppInfo/oppEnemy.html',
                            controller:'PersonalOppEnemyController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('personalOppPartner', {
                    parent:'personalOppInfo',
                    url:'/partner',
                    views:{
                        'component@personalOppInfo':{
                            templateUrl:'scripts/components/personalBusiness/opp/oppInfo/oppPartner.html',
                            controller:'PersonalOppPartnerController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('personalOppRelevant', {
                    parent:'personalOppInfo',
                    url:'/relevant',
                    views:{
                        'component@personalOppInfo':{
                            templateUrl:'scripts/components/personalBusiness/opp/oppInfo/oppRelevant.html',
                            controller:'PersonalOppRelevantController'
                        }
                    }
                })
        })